<?php namespace nimo\domains\master\models;

use nimo\common\models\BaseNodeModel;

class Account extends BaseNodeModel {

    protected $table = 'nd_master_account';

    //protected $guarded = array();

    public static $rules = array(
        'id' => 'required',
        'domainid' => 'required|integer',
        'code' => 'required|integer',
        'class' => 'required|max:1',
        'name' => 'required|max:60',
        'lname' => 'required|max:160',
        'uname' => 'required|max:80',
        'ename' => 'required|max:120',
        'nameid' => 'required|max:160',
        'type' => 'required|max:1',
        'balance' => 'required|max:8',
        'abstract' => 'required|max:1',
        'nillable' => 'required|max:1',
        'node_parent' => 'integer',
        'node_left' => 'integer',
        'node_right' => 'integer',
        'node_depth' => 'integer',
    );

}
